import http from "../utils/http";


export const GetMenus = (params:any): any => {
    return http.get("/api/menus",{
        params:params
    })
}

export const AddMenus = (data:any): any => {
    return http.post("/api/menus",data)
}

export const UpdateMenus = (data:any): any => {
    return http.put("/api/menus",data)
}

export const DeleteMenus = (data:any): any => {
    return http.delete("/api/menus",{
        data:data
    })
}
